#ifndef COMMAND_H_
#define COMMAND_H_

typedef enum {
	error_cmd = 0,
	//file command
	file_dir_cmd,
	file_open_text_cmd,
	file_open_mp3_cmd,
	//dac command
	dac_const_cmd,
	dac_sine_cmd,
	dac_square_cmd,
	dac_triangular_cmd,
	dac_squarecustom_cmd,
	//adc command
	adc_read_cmd,
	adc_set_alarm_min_cmd,
	adc_get_alarm_min_cmd,
	adc_set_alarm_max_cmd,
	adc_get_alarm_max_cmd,
	adc_act_alarm_cmd,
	//led command
	led_shr_cmd,
	led_shl_cmd,
	led_inc_lr_cmd,
	led_inc_rl_cmd,
	led_dec_lr_cmd,
	led_dec_rl_cmd,
	led_incdec_lr_cmd,
	led_incdec_rl_cmd,
} CMDRES;

CMDRES ParseCMD_filemode(char *str_recv);
CMDRES ParseCMD_dacmode(char *str_recv, unsigned int *valA, unsigned int *valB);
CMDRES ParseCMD_adcmode(char *str_recv, unsigned int *value);
CMDRES ParseCMD_ledmode(char *str_recv, unsigned int *delay);

#endif
